﻿<div class="modal fade" id="error_remarks" tabindex="-1" role="dialog" >
    <div class="modal-dialog" role="document">
        <form class="form-ajax"  autocomplete="off">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">订单异常信息</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" id="error_remarks_id" name="error_remarks_id"/>
                    <input type="hidden" id="error_remarks_id" name="error_remarks_val" value="error"/>
                    <div class="form-group">
                        <label for="message-text" class="control-label">骑手备注:</label>
                        <input type="text" name ="remarks_horse" id="remarks_horse" readonly class="form-control " placeholder="" value="" />
                    </div>

                    <div class="form-group">
                        <label for="message-text" class="control-label">门店备注:</label>
                        <input type="text" name ="remarks_error" id="remarks_error" class="form-control " placeholder="" value="" required/>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
        </form>
    </div>
</div>
<script>
    function showE(id){
        $.ajax({
            url:"?md=shop&cl=shop&at=getError",
            dataType:"json",
            type:"post",
            data:{'id':id},
            success:function (d) {
                $("#remarks_error").val(d.shop_remark);
                $("#remarks_horse").val(d.error_remark);
            }
        })
    }
</script>